home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / New System Software Extensions / QuickDraw™ GX v1.0ß2 / Sample Code / Printing Samples / Printer Drivers… / ImageWriter / CommonDefines.h < prev    next >
Encoding:
Text File  |  1993-09-12  |  1.6 KB  |  50 lines  |  [TEXT/MPS ]

  1. /*
  2.     copyright © 1992 Apple Computer Inc.  All rights reserved.
  3.     Apple Confidential - Do Not Distribute
  4.     
  5.     CommonDefines.h
  6.     This file defines values used by more than one .r or .h file.
  7.     
  8.     Modification history
  9.  
  10.     9/12/93            dmh                Modified for the b2 seed.
  11.     4/26/93            dmh                Modified for the b1 seed.
  12.     7/23/92            TED                New file today
  13.     
  14. */
  15.  
  16. // driver info
  17. #define DriverName        "ImageWriter"
  18. #define DriverType         'pdvr'
  19. #define DriverCreator     'IWII'
  20.  
  21. // code segment info
  22. #define DriverSegType    DriverType
  23. #define NewSegID        0
  24. #define OldSegID        1
  25.  
  26. // resource IDs for STR#s
  27. #define    kFormatModeFontsID                gxPrintingDriverBaseID        // List of "native" mode fonts supported
  28. #define    kFormatModeStylesID                (gxPrintingDriverBaseID + 1)    //    List of "well" known styles that are supported
  29. #define    kBoldStyle                        1                            //    Index into kFormatModeStylesID 'STR#' of the bold style string
  30. #define    kUnderlineStyle                    2                            //    Index into kFormatModeStylesID 'STR#' of the underline style string
  31.  
  32. // status information
  33. #define kDriverStatus        gxPrintingDriverBaseID    // stat resource ID
  34. #define kSendingData        1                        // item number for sending data
  35.  
  36. // options, placed into the job collection
  37. #define kSuperRes            0x1                        // highest res possible (160X144, 80X72)
  38.  
  39. // do the following only if we aren't running in Rez
  40. #ifndef REZ
  41.  
  42. // own own global storage - this gets passed as the first parameter for every message
  43. typedef struct
  44.     {
  45.     long    leftMargin;        // margin at left edge of page
  46.     Handle     draftTable;        // table for driving draft output, nil when not loaded
  47.     } SpecGlobals, *SpecGlobalsPtr, **SpecGlobalsHdl;
  48.     
  49. #endif
  50.